<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8" />
<title>management</title>
<meta name="Keywords" content="" /> 
<meta name="Description" content="" />
<link type="text/css" rel="stylesheet" href="/css/main.css" />
<script src="/js/jquery-1.8.3.min.js"></script>
</head>
<body>
<div class="wrapper">
	<div class="mod_box">
		<div class="hd"><span class="tl"></span><span class="tr"></span></div>
		<div class="bd">
			<!--面包屑 begin-->
			<div class="crumb">location：<a href="javascript:void(0);">supervisor</a> &gt; <a href="javascript:void(0);">list</a></div>
			<!--面包屑 end-->
			<!--列表数据 begin-->
			<table class="mod_table_2">
				<thead>
					<tr>
						<th class="th_first" width="6%"><span>Serial Num</span></th>
						<th width="8%"><span>First Name</span></th>
						<th width="8%"><span>Last Name</span></th>
						<th width="8%"><span>Deparment</span></th>
						<th width="8%"><span>Job Title</span></th>
						<th width="8%"><span>Office Phone</span></th>
						<th width="8%"><span>Cell Phone</span></th>
						<th width="8%"><span>Email Address</span></th>
						<th width="20%"><span>Permission</span></th>
						<th class="th_last" width="12%"><span>&nbsp;</span></th>
					</tr>
				</thead>
				<tbody>
					{{foreach from=$pageArray.rows key=key item=item}}
					<tr>
						<td class="td_first">{{$item.id}}</td>
						<td>{{$item.first_name}}</td>
						<td>{{$item.last_name}}</td>
						<td>{{$item.department}}</td>
						<td>{{$item.job_title}}</td>
						<td>{{$item.office_phone}}</td>
						<td>{{$item.cell_phone}}</td>
						<td>{{$item.email}}</td>
						<td>{{$item.permission_show}}</td>
						<td class="td_last">
							<a href="/index.php?r=supervisor/modify&sid={{$item.id}}">modify</a>
							<a href="javascript:void(0);" onclick="delAction('{{$item.id}}')">delete</a>
						</td>
					</tr>
					{{/foreach}}
				</tbody>
			</table>
			<!--列表数据 end-->
			<!--分页 begin-->
			{{include file="management/page.tpl.htm"}}
			<!--分页 end-->
		</div>
		<div class="ft"><span class="bl"></span><span class="br"></span></div>
	</div>
</div>
<script>
	function delAction(sid){
		if(confirm("确认删除么？")){
			window.location.href = '/index.php?r=supervisor/del&sid=' + sid;
		}
	}
</script>
</body>
</html>